<?php
//获取参数
$oar_year              = $route->bodyParams['oar_year'];          
$oar_month             = $route->bodyParams['oar_month'];
$oar_day               = $route->bodyParams['oar_day'];
$oar_time              = $route->bodyParams['oar_time'];
$oar_type              = $route->bodyParams['oar_type'];
$oar_ouid              = $route->bodyParams['oar_ouid'];
$oar_is_week           = $route->bodyParams['oar_is_week'];

//写入数组
$insertArr = [
    'oar_year'             => $oar_year,
    'oar_month'            => $oar_month,
    'oar_day'              => $oar_day,
    'oar_time'             => $oar_time,
    'oar_type'             => $oar_type,
    'oar_ouid'             => $oar_ouid,
    'oar_create_time'     => time(),
    'oar_is_week'         => $oar_is_week
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_attendance_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );